<template>
	<view class="bodyBox-t30">
		<view class=""
			style="margin-bottom: 15px; display: flex;justify-content: center;align-items: center;font-weight: bold; font-size: 24px;color: blue;">
			{{data.title}}
		</view>
		<rich-text :nodes="data.content"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {}
			}
		},
		onShareAppMessage(res) {
			return {
				title: '宠物便捷服务小程序',
				path: 'pages/helpDetail/helpDetail?id=' + this.data.id,
			};
		},
		onLoad(option) {
			this.helpDetail(option.id)
		},
		methods: {
			helpDetail(id) {
				this.apis.helpDetail({
					id: id,
				}).then(res => {
					this.data = res
				})
			},
		}
	}
</script>

<style>

</style>
